package org.jftstool.result;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import junit.framework.TestCase;

import org.jftstool.resultOrder.ResultOrder;


public class ResultOrderTest  extends TestCase { 
	public void test1(){
		Map<String, String> params = new HashMap<String, String>();

		params.put("type", "field");
		params.put("name", "id");			
		params.put("dir", "desc");
					

		List<Map<String, String>> orders = new ArrayList<Map<String, String>>();
		orders.add(params);
		ResultOrder ro = new ResultOrder(orders);
		
		assertEquals(1, ro.getOrders().size());
		
	}
}
